// 组装拆分
import fetch from '@/config/fetch'

// 组装单列表
export const listJoin = data => fetch('/stock_join/orders_list/', data);
// 查看组装单详情
export const infoJoin = (id, data) => fetch("/stock_join/"+ id +"/orders_single/", data);
// 组装单新增
export const addJoin = data => fetch('/stock_join/orders_add/', data, 'POST');
// 组装单删除
export const removeJoin = (id, data) => fetch("/stock_join/"+ id +"/orders_del/", data, 'DELETE');
// 批量删除组装单
export const removeBatchJoin = data => fetch('/stock_join/expenditure_batch_del/', data, 'POST');

// 拆分单列表
export const listSplit = data => fetch('/stock_split/orders_list/', data);
// 查看拆分单详情
export const infoSplit = (id, data) => fetch("/stock_split/"+ id +"/orders_single/", data);
// 拆分单新增
export const addSplit = data => fetch('/stock_split/orders_add/', data, 'POST');
// 拆分单删除
export const removeSplit = (id, data) => fetch("/stock_split/"+ id +"/orders_del/", data, 'DELETE');
// 批量删除拆分单
export const removeBatchSplit = data => fetch('/stock_split/expenditure_batch_del/', data, 'POST');